package com.ibeetl.cms.dao;

import java.util.Date;
import java.util.List;

import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.mapper.BaseMapper;
import org.beetl.sql.core.engine.PageQuery;

import  com.ibeetl.cms.entity.*;

/**
 * EssentialInformation Dao
 */
@SqlResource("cms.essentialInformation")
public interface EssentialInformationDao extends BaseMapper<EssentialInformation>{
    public PageQuery<EssentialInformation> queryByCondition(PageQuery query);
    public void batchDelEssentialInformationByIds( List<Long> ids);
    public EssentialInformation finduserid(long userid);
    Integer findorgUserId(String identificationNumber);
    int ToUpdateReported(String name, String sex, Date birthday, String nation, String politicalOutlook,
                         String maritalStatus, String nativePlace, String mailBox, String contactNumber,
                         String phoneNumber, String idType, String identificationNumber,
                         String accountOpeningBank, String bankCardNumber, String graduateSchool,
                         String major, String education, String academicDegree
            , String currentWorkingEnterprise, String position, String majorAchievements, String declarationType, Integer userId);

    int updateEssentialInformation(Integer userId,String idType,String identificationNumber);
    int updateWorkingName(Integer companyId,String workingName);
}